<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Admin extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin', function (Blueprint $table) {
            $table->integer('admin_id',11)->increments('admin_id');
            $table->string('admin_name',20);
            $table->string('admin_avatar',100);
            $table->string('admin_password')->default(0);
            $table->integer('admin_login_time')->default(0);
            $table->integer('admin_login_num')->defalut(0);
            $table->tinyInteger('admin_is_super')->default(0);
            $table->smallInteger('admin_gid')->default(0);
            $table->string('admin_quick_link',400);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin');
    }
}
